home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_2.lha
/
6_2
/
tst1.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
708b
|
31 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <strclass.h>
include <6_2a.c>
ain()
{
include "6_2b.c"
cout << "x=" << x;
cout << "x25=" << x25;
cout << "x69=" << x69;
cout << "x57=" << x57;
}
string w = "abcdefghijklmnop";
string x = "0123456789wxyz";
cout << "w=" << w;
cout << "x=" << x;
cout << "w(5)=" << w(5);
string y = w(5,3);
cout << "y=w(5,3)=" << y;
cout << "x(-5)=" << x(-5);
cout << "x(-5,3)=" << x(-5,3);
cout << "x(0)=" << x(0);
cout << "x(0,2)=" << x(0,2);
cout << "x(11,8)=" << x(11,8);
cout << "x(8,4)=" << x(8,4);
return 0;